package com.abigdreamer.im.message;

/**
 * 文件传送请求消息 1：文件名称 2：文件长度
 */
public class FileRequestMessage extends BaseMessage {

	private static final long serialVersionUID = 1L;

	private String fileName; // 文件名称

	private long fileLength; // 文件长度 以KB为单位

	private String fileAbsolutePath;

	private String ip;
	
	private int port;
	
	public FileRequestMessage() {
		this.setMsgType(MessageType.FileRequestMessage_Type);
	}

	public FileRequestMessage(String srcQQ, String destQQ) {
		this();
		this.setSrcQQ(srcQQ);
		this.setDestQQ(destQQ);
	}

	public long getFileLength() {
		return fileLength;
	}

	public void setFileLength(long fileLength) {
		this.fileLength = fileLength;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileAbsolutePath() {
		return fileAbsolutePath;
	}

	public void setFileAbsolutePath(String fileAbsolutePath) {
		this.fileAbsolutePath = fileAbsolutePath;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}